<?php

namespace Rebecca\RebeccaBundle\Component;

require_once "ComponentBase.php";

/**
 * Description of TestComponent
 *
 * @author JeyDotC
 */
class PeriodosLaboralesContratosComponent extends ComponentBase {

    /**
     * getUnique
     *
     * @return \Rebecca\RebeccaBundle\Entity\PeriodosLaboralesContratos 
     */
    function getUnique($idPeriodoLaboral, $idContrato) {

        return $this->em->getRepository($this->entityName)->find(
                        array(
                            'idPeriodoLaboral' => $idPeriodoLaboral,
                            'idContrato' => $idContrato
                ));
    }

}

?>